<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>添加菜单项</title>
</head>
<body>
	<form action="/Admin/Menuitem/insert" method="post">
		菜单名称：<input type="text" name="name"><br>
		菜单路径：<input type="text" name="link"><br>
		上层菜单项：
		<select size="20" name="pid">
			<option value="0" selected="selected">顶层菜单</option>
			<?php if(is_array($milist)): $i = 0; $__LIST__ = $milist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?><option value="<?php echo ($row['id']); ?>">
					<?php for($i=0;$i<$row['marginnum']/5;$i++){ echo "&nbsp;"; } ?>
					<?php echo ($row['name']); ?>
				</option><?php endforeach; endif; else: echo "" ;endif; ?>
		</select>
		<input type="hidden" name="menuid" value="1">
		<input type="submit" value="保存">
	</form>
</body>
</html>